<?php

namespace App\Entities;

use App\Support\Database\Eloquent\UuidModel;

class PrizeRecord extends UuidModel
{
    const ENTRY = 'entry';
    const DELIVERY = 'delivery';
    const CREATE = 'create';
    const RECYCLE = 'recycle';

    // 实物奖品的操作名称
    const ENTITY_OPERATES = array(
        self::CREATE => '入库',
        self::ENTRY => '入库',
        self::DELIVERY => '出库',
        self::RECYCLE => '回收',
    );

    // 红包奖品的操作名称
    const MONEY_OPERATES = array(
        self::CREATE => '充值购买',
        self::ENTRY => '活动回收',
        self::DELIVERY => '活动发放',
        self::RECYCLE => '回收',
    );

    protected $fillable = [
        'id',
        'prize_id',
        'activity_id',
        'limit',
        'number',
        'summary',
        'probability',
        'operate'
    ];
}
